#include "MySqlIndexHint.h"
#include "../../../../utils/StringUtils.h"

MySqlIndexHint_Option_ptr MySqlIndexHint_Option::JOIN = MySqlIndexHint_Option_ptr(new MySqlIndexHint_Option(1 << 0, make_string_ptr("JOIN")));
MySqlIndexHint_Option_ptr MySqlIndexHint_Option::ORDER_BY = MySqlIndexHint_Option_ptr(new MySqlIndexHint_Option(1 << 1, make_string_ptr("ORDER BY")));
MySqlIndexHint_Option_ptr MySqlIndexHint_Option::GROUP_BY = MySqlIndexHint_Option_ptr(new MySqlIndexHint_Option(1 << 2, make_string_ptr("GROUP BY")));

MySqlIndexHint_Option::MySqlIndexHint_Option(uint64_t mask, string_ptr name)
{
  this->mask = mask;
  this->name = name;
  this->nameLCase = StringUtils::toLower(name);
}
